<?
function isValidDate($date)
{
    $format = "Y-m-d H:i:s";
	$unixTime = strtotime($date);
    $checkDate = date($format, $unixTime);
    if ($checkDate == $date)
        return 1;
    else
        return 0;
} 
?>